package com.example.boot.rtshop.model;

import java.util.Date;
import java.util.List;

import com.example.boot.rtgoods.model.RtGoods;
import com.example.boot.rtgoods.vo.GoodsType;
import com.example.boot.rtnotice.model.RtNotice;
import com.example.boot.rtshopactivity.model.RtShopActivity;

public class RtShop implements Comparable {
	private String id;

	private Date createDate;

	private Date updateDate;

	private Integer deleteStatus;

	private String shopName;

	private String shopPhone;

	private String shopDetail;

	private String shopPicture;

	private String shopAdress;

	private List<GoodsType> goodsType;
	private List<RtGoods> goodsList;
	private List<RtShopActivity> activityList;
	private List<RtNotice> noticeList;

	private int distance;
	// 开始时间
	private String shopBeginTime;
	// 结束时间
	private String shopEndTime;
	// 桌子号
	private Integer tableNo;
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id == null ? null : id.trim();
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public Integer getDeleteStatus() {
		return deleteStatus;
	}

	public void setDeleteStatus(Integer deleteStatus) {
		this.deleteStatus = deleteStatus;
	}

	public String getShopName() {
		return shopName;
	}

	public void setShopName(String shopName) {
		this.shopName = shopName == null ? null : shopName.trim();
	}

	public String getShopPhone() {
		return shopPhone;
	}

	public void setShopPhone(String shopPhone) {
		this.shopPhone = shopPhone == null ? null : shopPhone.trim();
	}

	public String getShopDetail() {
		return shopDetail;
	}

	public void setShopDetail(String shopDetail) {
		this.shopDetail = shopDetail == null ? null : shopDetail.trim();
	}

	public String getShopPicture() {
		return shopPicture;
	}

	public void setShopPicture(String shopPicture) {
		this.shopPicture = shopPicture == null ? null : shopPicture.trim();
	}

	public String getShopAdress() {
		return shopAdress;
	}

	public void setShopAdress(String shopAdress) {
		this.shopAdress = shopAdress == null ? null : shopAdress.trim();
	}

	public int getDistance() {
		return distance;
	}

	public void setDistance(int distance) {
		this.distance = distance;
	}

	public List<GoodsType> getGoodsType() {
		return goodsType;
	}

	public void setGoodsType(List<GoodsType> goodsType) {
		this.goodsType = goodsType;
	}

	public List<RtGoods> getGoodsList() {
		return goodsList;
	}

	public void setGoodsList(List<RtGoods> goodsList) {
		this.goodsList = goodsList;
	}

	public List<RtShopActivity> getActivityList() {
		return activityList;
	}

	public void setActivityList(List<RtShopActivity> activityList) {
		this.activityList = activityList;
	}

	public String getShopBeginTime() {
		return shopBeginTime;
	}

	public void setShopBeginTime(String shopBeginTime) {
		this.shopBeginTime = shopBeginTime;
	}

	public String getShopEndTime() {
		return shopEndTime;
	}

	public void setShopEndTime(String shopEndTime) {
		this.shopEndTime = shopEndTime;
	}

	public List<RtNotice> getNoticeList() {
		return noticeList;
	}

	public void setNoticeList(List<RtNotice> noticeList) {
		this.noticeList = noticeList;
	}
	

	public Integer getTableNo() {
		return tableNo;
	}

	public void setTableNo(Integer tableNo) {
		this.tableNo = tableNo;
	}

	@Override
	public int compareTo(Object o) {
		RtShop s = (RtShop) o;
		if (this.distance > s.distance) {
			return 1;
		} else if (this.distance < s.distance) {
			return -1;
		}

		return 0;
	}

}